import axios from "axios";
//创建axios实例对象
const request = axios.create({
  baseURL: "https://apifoxmock.com/m1/3128855-1224313-default/",
  timeout: 600000,
});

//axios的响应response拦截器
request.interceptors.response.use(
  (response) => {
    // console.log(response);
    return response.data;
  },
  (error) => {
    // console.log(error);
    return Promise.reject(error);
  }
);
export default request;